home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / var / lib / dpkg / info / cups-driver-gutenprint.postrm < prev    next >
Text File  |  2008-10-06  |  1KB  |  42 lines

  1. #! /bin/sh
  2. # postrm script for cups-driver-gutenprint
  3. #
  4. # see: dh_installdeb(1)
  5.  
  6. set -e
  7.  
  8. # summary of how this script can be called:
  9. #        * <postrm> `remove'
  10. #        * <postrm> `purge'
  11. #        * <old-postrm> `upgrade' <new-version>
  12. #        * <new-postrm> `failed-upgrade' <old-version>
  13. #        * <new-postrm> `abort-install'
  14. #        * <new-postrm> `abort-install' <old-version>
  15. #        * <new-postrm> `abort-upgrade' <old-version>
  16. #        * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
  17. # for details, see /usr/doc/packaging-manual/
  18.  
  19. if [ "$1" = remove ]; then
  20.     # Remove generated PPDs
  21.     # (note: user-generated now we no longer generate them automatically)
  22.     rm -rf /usr/share/cups/model/gutenprint/5.2
  23.     rmdir /usr/share/cups/model/gutenprint 2>/dev/null || true
  24.     rm -rf /usr/share/ppd/gutenprint/5.2
  25.     rmdir /usr/share/ppd/gutenprint 2>/dev/null || true
  26.     [ -x /etc/init.d/cups ] && invoke-rc.d cups force-reload || true
  27. fi
  28.  
  29. if [ "$1" = purge ]; then
  30.     # Remove directories if empty
  31.     rmdir /etc/cups 2>/dev/null || true
  32.     rmdir /usr/share/cups/model/gutenprint 2>/dev/null || true
  33.     rmdir /usr/share/ppd/gutenprint 2>/dev/null || true
  34. fi
  35.  
  36. # dh_installdeb will replace this with shell code automatically
  37. # generated by other debhelper scripts.
  38.  
  39.  
  40.  
  41.  
  42.